<template>
  <div class="elPageList">
    <el-pagination
      @size-change="val => $emit('size-change', val)"
      @current-change="val => $emit('current-change', val)"
      :current-page="ElPageList.currentPage"
      :page-sizes="ElPageList.pageSizes ? ElPageList.pageSizes : pageSizes"
      :page-size="ElPageList.pageSize"
      :layout="ElPageList.layout"
      :total="total"
      background>
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: 'ElPageList',
  components: {},
  props: {
    ElPageList: {
      type: [Array, Object],
      required: true
    },
    pageSizes: {
      type: Array,
      default: () => [10, 20, 30]
    },
    total: {
      type: Number,
      default: 80
    }
  },
  data () {
    return {}
  },
  // 计算属性
  computed: {},
  watch: {},
  mounted () {},
  methods: {}
}
</script>

<style lang="scss" scoped>

</style>
